const http = require('htp');
const server = http.createServer();
server.on('request', (req, res) => {
    if(req.url === '/') {
        res.end('首页');
    } else {
        res.end('找不到');
    }
})
server.listen(80, () => {
    // console.log(server);
    console.log('服务器http://127.0.0.1');
})